package com.zyz.E_面向对象.O_代码块.非静态代码块;

/**
 * @author: vick
 * @Date: 2025/3/18
 * @Description:
 * @version: 1.0
 */
public class Father {
    private String str = assign();

    {
        System.out.println("父类的非静态代码块");
    }

    public Father() {
        System.out.println("父类的无参构造器");
    }

    public String assign() {
        System.out.println("父类的assign方法");
        return "father";
    }

}
